import request from '@/utils/request'

// 查询礼物接收列表
export function listGiftReceive(query) {
  return request({
    url: '/system/giftReceive/list',
    method: 'get',
    params: query
  })
}

// 查询礼物接收详细
export function getGiftReceive(id) {
  return request({
    url: '/system/giftReceive/' + id,
    method: 'get'
  })
}

// 新增礼物接收
export function addGiftReceive(data) {
  return request({
    url: '/system/giftReceive',
    method: 'post',
    data: data
  })
}

// 修改礼物接收
export function updateGiftReceive(data) {
  return request({
    url: '/system/giftReceive',
    method: 'put',
    data: data
  })
}

// 删除礼物接收
export function delGiftReceive(id) {
  return request({
    url: '/system/giftReceive/' + id,
    method: 'delete'
  })
}
